package com.future.serviceImpl;

import com.future.dto.ElectricdetailsDto;
import com.future.dto.Moneys;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.future.domain.Electricdetails;
import com.future.mapper.ElectricdetailsMapper;
import com.future.service.ElectricdetailsService;
/**
 * @Auther: 田坑坑
 * @Date: 2022/6/20 14:01
 * @Description:  我题序等你回
 */
@Service
public class ElectricdetailsServiceImpl extends ServiceImpl<ElectricdetailsMapper, Electricdetails> implements ElectricdetailsService{
   @Autowired
    private ElectricdetailsMapper electricdetailsMapper;


    @Override
    public List<Moneys> selectMoney(int roomId) {
        return this.electricdetailsMapper.selectMonthMoney(roomId);
    }

    @Override
    public int updateBatch(List<Electricdetails> list) {
        return baseMapper.updateBatch(list);
    }
    @Override
    public int updateBatchSelective(List<Electricdetails> list) {
        return baseMapper.updateBatchSelective(list);
    }
    @Override
    public int batchInsert(List<Electricdetails> list) {
        return baseMapper.batchInsert(list);
    }

    @Override
    public List<ElectricdetailsDto> selectElectricdetails(int roomid) {
        return this.electricdetailsMapper.selectElectricdetails(roomid);
    }
}
